
import './App.css';
import React from 'react';
import {
  BrowserRouter,
  Route,
  Switch
} from 'react-router-dom'

import { Redirect } from 'react-router-dom/cjs/react-router-dom.min';
import Login from './pages/login/login';
import Launch from './pages/launch/launch';
import MenuLayout from './pages/menu/menuLayout';
import MenuLaunch from './pages/menu/menuLaunch';


function App() {
  return (
    // <BrowserRouter >
    <BrowserRouter basename="/diandian">
      <div className="AppRoot">
        <div className="App">
          <Switch>
            <Route path='/login'><Login /></Route>
            <Route path='/dlaunch'><Launch /></Route>
            {/* <Redirect to='/login'></Redirect> */}

            <Route path='/launch'><MenuLaunch /></Route>
            {/* <Route path='/index'><MenuLayout /></Route> */}
            <Redirect to='/launch'></Redirect>
          </Switch>
        </div>
      </div>
    </BrowserRouter>
  );
}

export default App;
